import VueXRuler from './VueXRuler/index.vue';
const components = [VueXRuler];
/**
 *  install 的固定写法
 */
const install = (Vue) => {
  if (install.installed) return; // 判断是否安装注册过
  components.forEach((component) => Vue.component(component.name, component));
};
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue); // window中有Vue时去install()
}
export default {
  install,
};
